package day08_Extends.作业7.编码2;

public class ChenXuYuan extends Test2{
    @Override
    public void job() {
        if (getAge()<15||getAge()>100){
            System.out.println("年龄信息无效！已修改默认年龄为15");
            setAge(15);
        }if (getAge()>14&&getAge()<100){
            System.out.println("姓名:"+getName());
            System.out.println("年龄:"+getAge());
            System.out.println("技术方向:"+getJsfx());
            System.out.println("工作年限:"+getGznx());
            System.out.println("工作单位:"+getGzdw());
            System.out.println("职务:"+getZw());
        }
    }

    public ChenXuYuan() {
    }

    public ChenXuYuan(String name, int age, String jsfx, int gznx, String gzdw, String zw) {
        super(name, age, jsfx, gznx, gzdw, zw);
    }
}
